package com.share.cloudStorage.files.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.cloudStorage.files.model.Files;
import com.share.cloudStorage.files.model.FilesQueryParams;
import com.share.cloudStorage.model.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


public interface FilesService extends IService<Files> {


    List<Files> searchFilesById(FilesQueryParams filesQueryParams);

    Result uploadFile(MultipartFile file,Files files) throws IOException;

    String deleteFiles(int[] ids);

    String updateFilesIsDelete(Files files);

    void recycleByIds(List<Integer> intFileIds);

    List<Files> searchVisibleFilesById(FilesQueryParams filesQueryParams);

    List<Files> searchByFileId(Integer fileId);

    void restoreFiles(List<Integer> intFileIds);

    List<Integer> searchFileIdAndParentId(List<Integer> fileIdList);
    Result reName(Files files);

    Result createFolder(Files files);

}

